import axios from "axios";

const subjectApi = {
  getSubjects(data) {
    return axios.get("/subjects/getSubjects", data)
  },
  deleteSubject(_id) {
    return axios.delete('/subjects/deleteSubjects', {
      data: {
        _id,
      },
    })
  },
  addSubject(data) {
    return axios.post("/subjects/addSubjects", data)
  }
}

export default subjectApi